]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
searchController: Get rid of activePage reference in key handling
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 17 Feb 2021 01:31:32 +0000 (02:31 +0100)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 17 Feb 2021 01:31:32 +0000 (02:31 +0100)
Even if activePage has been removed as part of commit 27627bd40, we've
still a reference of it in key press handler.

Given that there's no anymore an active page to redirect input to,
remove these references, so that can be handled in the proper view to
implement key-navigation.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1688>

js/ui/searchController.js

index 6fe76dafc2763b5876c533abb169eb64275c40e6..5d25897c7957745377ae857e3ac8cbad7b5813c1 100644 (file)
@@ -151,14 +151,6 @@ var SearchController = GObject.registerClass({
             return Clutter.EVENT_STOP;
         } else if (this._shouldTriggerSearch(symbol)) {
             this.startSearch(event);
-        } else if (!this._searchActive && !global.stage.key_focus) {
-            if (symbol === Clutter.KEY_Tab || symbol === Clutter.KEY_Down) {
-                this._activePage.navigate_focus(null, St.DirectionType.TAB_FORWARD, false);
-                return Clutter.EVENT_STOP;
-            } else if (symbol === Clutter.KEY_ISO_Left_Tab) {
-                this._activePage.navigate_focus(null, St.DirectionType.TAB_BACKWARD, false);
-                return Clutter.EVENT_STOP;
-            }
         }
         return Clutter.EVENT_PROPAGATE;
     }